﻿Public Class nvvanphong
    Inherits nhanvien
    Private _trocap As Double

    Public Overrides Sub Nhap()
        MyBase.Nhap()
        Console.WriteLine("Nhap tro cap:")
        _trocap = Convert.ToDouble(Console.ReadLine())
    End Sub

    Public Overrides Sub Xuat()
        MyBase.Xuat()
        Console.WriteLine("Tro cap: {0} (VND)", _trocap)
    End Sub

    Public Overrides Function TinhLuong(ByVal sonc As Integer) As Double
        Return MyBase.TinhLuong(sonc) * 100000 + _trocap
    End Function
End Class
